package com.jader.beans;

import java.io.Serializable;

public class LunTan_ALLHuiFu implements Serializable {

	private static final long serialVersionUID = 1L;

	private User user;
	private long tiezi_id;
	private long huifu_id;
	private long parent_id;
	private String time;
	private String title;
	private String content;
	private int is_huifu;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public long getTiezi_id() {
		return tiezi_id;
	}

	public void setTiezi_id(long tiezi_id) {
		this.tiezi_id = tiezi_id;
	}

	public long getHuifu_id() {
		return huifu_id;
	}

	public void setHuifu_id(long huifu_id) {
		this.huifu_id = huifu_id;
	}

	public long getParent_id() {
		return parent_id;
	}

	public void setParent_id(long parent_id) {
		this.parent_id = parent_id;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getIs_huifu() {
		return is_huifu;
	}

	public void setIs_huifu(int is_huifu) {
		this.is_huifu = is_huifu;
	}

	@Override
	public String toString() {
		return "LunTan_ALLHuiFu [user=" + user + ", tiezi_id=" + tiezi_id
				+ ", huifu_id=" + huifu_id + ", parent_id=" + parent_id
				+ ", time=" + time + ", title=" + title + ", content="
				+ content + ", is_huifu=" + is_huifu + "]";
	}

	public LunTan_ALLHuiFu(User user, long tiezi_id, long huifu_id,
			long parent_id, String time, String title, String content,
			int is_huifu) {
		super();
		this.user = user;
		this.tiezi_id = tiezi_id;
		this.huifu_id = huifu_id;
		this.parent_id = parent_id;
		this.time = time;
		this.title = title;
		this.content = content;
		this.is_huifu = is_huifu;
	}

	public LunTan_ALLHuiFu() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (tiezi_id ^ (tiezi_id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LunTan_ALLHuiFu other = (LunTan_ALLHuiFu) obj;
		if (tiezi_id != other.tiezi_id)
			return false;
		return true;
	}

}
